add x-invalid event #29

trigger x-invalid when submitting a form with invalid fields
Merge pull request #35 from bboyle/x-invalid-event

add x-invalid event (closes #29)