Now the logout button only appears when the user is logged in.