Adding authentication to view the main page.
Adding the navigation bar for the application view.