Remove two-factor code form when it's not needed