Added validation-failed handler