Implemented simple authentication.