fix navbar when logging in/out