add all_or_none validator

In some situation, we expect a group of parameters were provided all or none, so I add this validator.