check duplicates before linking username