Added custom validator for hashes.
Validates (key,value) pairs, including keys regex match.