fix 'Submit event firing on error'

related issue https://github.com/rickharrison/validate.js/issues/40