Making use of Authentication Part1

Hiding the navigation links when a user is not logged in, adding in the username to the navigation bar when logged in, and some small refactors