M2 Login Widget isn't working when Two Factor plugin is enabled

When Two Factor Authentication plugin is activated, M2 login widget doesn't work.

That plugin says "Third-party plugins that add their own login forms are only supported if they follow the conventions of the WordPress login form."