Renames populateRules function to populateValidation