  if(input.className.indexOf(\&quot;required\&quot;) &gt;= 0) &#123;\n        if(input.id == \&quot;signup_email\&quot;) &#123;\n          if(!email.test(input.value)) &#123;\n            emailErrorMessage(input, allDivs);\n            isValid = false;\n          &#125; else &#123;\n            removeErrorMessage(input, allDivs);\n          &#125;\n        &#125; else &#123;\n          if((input.type == \&quot;checkbox\&quot; &amp;&amp; !input.checked) &#124;&#124; input.value == \&quot;\&quot; &#124;&#124;