Edit purchase_id validation to allow for either numbers or null