conditional rendering of nav based on loggedin status