Implementing required validation on forms on frontend

Implemented using the innovations form. Doesn't seem like others are implemented.
Should work for every form.
Same, can't we put this outside the loop?