fixed the authentication