fix non-object error
user not logged in