Added correct call to isAuthenticated