fixed tagsval usage in verifyinput