cleanup
Add navigation method for the login view
Add conditional navigation

If the user is logged in, navigate to the main page view. Otherwise, log in
Cleanup
Remove debug message
Cleanup