improve refreshCustomValidityRules