add an option to choose input type (e.g email) #140 (fix 'leftoverText' validity when a tag is added)