Add code for user authentication.