Add maxlength to text field inputs