added a validation rule