add maxlength to text field inputs