Adding attr-maxlength to set the maxlength of the input element.