add maxlength to all write-in inputs