Implemented Locality Type validation rule

* Implemented validation rule in 2 different ways to compare both versions of the
rules engine