Added validation to data.