Created Login and isAuthenticated functions in AuthService