Add length restriction on unique_id