making nav bar only available when logged in