Fix errors with missing fields in validation.