I am trying to run a JavaScript code on a button AFTER it is validated and clicked. I can get the code to run without any validation, but when I added the "if valid" in line 2, the JavaScript will not run at all and the form will not submit.I am trying to run a JavaScript code on a butto