modified validation for add customer and edit customer