How to remove the unfilled rows in Input Table?