Controller for the homepage, login, registration