Implements the login screen of the chat application.