Settings, userinfo: Moved login check before html