Implementing user authentication.