If the user is logged in take them to the main screen else to the login screen.
Logout functionality with the option in the collapsed settings menu.