Merge "Hide signup/login/logout links when they would not work"