Implement Authentication.