"Trying to get property 'token' of non-object"