Added a controller for the main page.
Logout option is displayed only when user is logged in now.