Fixed the authentication.