Validation correction in edit purchase