userisauthenticated fixed