Added condition on the Add/Update button.