checking for duplicates before adding new tag