Adding error support for the validation exception