title: Vanilla javascript form validations, how to undo prevent default on submit
body: <p>I've tried so many different things that I eventually gave up and switched to jQuery, but for my peace of mind, how would I undo the eventHandler in this case? The current method I have now isn't working.</p>
  
  <pre><code>Front end New Profile Form Validations
  var profileForm = document.forms[0];
  
  profileForm.onsubmit = function processForm(eventHandler) {
  eventHandler.preventDefault();
  if {blah blah blah, my code
  }else{
    profileForm.submit(function(eventHandler) {
      return false;
    });
  }
  </code></pre>