Implemented basic user authentication.