If you are creating a new object, if there is a validation error al the tags that you have added get disappear.
If you are modifying an existing object, if there is a validation problem, the new tags that you added will disappear and there will be only the ones that are saved.