Adding minLength and maxLength properties to text fields.