Authentication was incorrectly determined at start, so the login/logout/admin buttons were broken