Implementing required validation on forms on frontend

Implemented using the innovations form. Doesn't seem like others are implemented.
Should work for every form.
$("div.step-current .question-has-errors").removeClass("question-has-errors")