Updated national id conversion script to first check for non-unique values