Set maxlength to let the browser restrict the field