refactored to show proper Login and Logout links