Added form.onValidate event (issue #162)