Added code to check session for current auth to show logout link.