getting validated data and updating the data