Simplify ValidationResult by removing the valid field.  We can just
check the number of error messages instead.