fix 2fa form validation and disable modal