Fix formatting of validation errors