Adding and Deleting Tags from a Related Table

As far as not allowing duplicates, I think @Robert_Petitto’s example may help, but after experimenting with this for an hour or so I am not sure how I would modify it for this case.