re-fixing logged-in/logged-out link state