add a validation condition