fix the validators when activemodel is not available