password2.setRequired(true);
final ButtonItem createAccount = new ButtonItem();
createAccount.setName("createAccount");
createAccount.setTitle("Create Account");
createAccount.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
form.validate();
}
});