Modifications and custom error messages in case a record is invalid.