Added a validation.