login button disappears and logout link appears when user logged in