Corrected how the navbar is displayed when the user is not logged in