Fix isAuthenticated. #8