Fixes issue submitting forms with an onsubmit attribute.
Merge pull request #288 from DoSomething/form-validate-event

Fixes issue submitting forms with an onsubmit attribute.