form = new CssForm("form");
VerticalFieldSet fieldset = new VerticalFieldSet("contactDetails");
fieldset.setLegend("Contact Details");
fieldset.add(new TitleSelect("title"));
fieldset.add(new TextField("firstName")).setRequired(true);
fieldset.add(new TextField("middleNames"));
fieldset.add(new TextField("lastName")).setRequired(true);
fieldset.add(new TextField("contactNumber"));
fieldset.add(new EmailField("email"));