[2.2] Respect login hidden toggle Fixes #5479