Implemented user authentication/authorization.