Custom validation rule for policies