Resolve issues for logging out and modify nag links according to session