updated the authentication system