refacto validathor config