Added a maximum length for text fields.