adjusted the authentication