hide the 'new post' link in navbar if the user is not logged in