Fixed navbar bug when user is not logged in