fixed onSubmitValidation errors, added two new onValidation functions