adding maxlen to input