added code to populate the validation dict