conditionally display logout link in dropdown menu, closes #546