Inline error validation on CTA click


Im using a bit of javascript from here [How to] Add Inline Form Error Messages made by @Noah. It all works great and does the job o thanks a lot!
But im having a small issue with it.

Right now errors appear once the field is clicked, I need them to show up when the CTA/submit button is clicked. Is there a quick solution to this? I’ve noticed that in @Noah example, that is how the code works.]

Thanks a lot!