fix errors if user not logged in