add maxlength for input autocomplete