add validator support to record