set maxlength of input