//Add inputs
form.add(new RequiredTextField<String>("displayName"));
form.add(passwordField = new PasswordTextField("password"));
form.add(rePasswordField = new PasswordTextField("rePassword"));
form.add(new RequiredTextField<String>("email").add(EmailAddressValidator.getInstance()));
form.add(new LocationSelector("location"));
form.add(new Button("profileSubmit", new ResourceModel(
MKEY_SUBMIT)));
//Attach matching passwords validator