 input.value == \&quot;-1\&quot;) &#123;\n            fieldErrorMessage(input, allDivs);\n            isValid = false;\n          &#125; else &#123;\n            removeErrorMessage(input, allDivs);\n          &#125;\n        &#125;\n      &#125;\n    &#125;\n    \n    form.className = isValid ? \&quot;\&quot; : \&quot;mimi_invalid\&quot;;\n    submit.value = isValid ? submit.getAttribute(\&quot;data-default-text\&quot;) : submit.getAttribute(\&quot;data-invalid-text\&quot;);\n\t\tsubmit.disabled = !isValid;