added injection to login and isAuthenticated