Fixed the validation.