fix the log out button to appear only when log in