Fixed the authentication