Modified the validation error reporting logic