Removing the validation if the delete option is selected