condition search validation

Adding validation for condition search