updated the authentication methods