Make value and from validator messages generic