When user inputs the tag and leave the tag input box without fixing(enter or tab key), tag string is still there, but it is not stored as a tag.
This changes solved this problem. When the cursol is out of the tag input, it registers the input as a tag.