Throws submit.error on submit if form is invalid