add maximum length to text fields