add validation for no. of rows in the block