add tag on focus out from input, added maxInputLength for limits the total tags length