replace validation rule with validation constraint which is more meaningful