changed validation method signature to Map<S,S>