correct logout link and behavior