Refactored validation utility to fit with Map<String,String[]>