validate data that each row has correct number of columns