Controllers for the login and chat views