use getData of validator to get validated data.