Fix typo in validation.