working on the authentication system