How to make a condition on Input Table row