return errors when not logged in