loggedin box displayed as a menu item instead of logout when authenticated