add maxlength on input if setted