fixes #4893 Saving a new tag to host also adding to User

fixed the issue and pushed the code for review, please check it.