bugfix isAuthenticated