fix validation error constructors