Applied the maximum length of the fields to the GUI.