Add isAuthenticated method to auth service.