public void createNewAccount(final String username, final String firstname, final String lastname, final String password, final String passwordHint,
final String email, final long birthday) {
final AsyncCallback<User> loginCallback = new AsyncCallback<User>() {
public void onFailure(Throwable caught) {
MessageDialogBox dialog = new MessageDialogBox(BaseApplication.getMessages().getString("error", "Error"), BaseApplication.getMessages().getString(
"couldNotCreateAccount", "Could not create new account. {0}", caught.getMessage()), true, true, true);
dialog.setCallback(new IDialogCallback() {
public void okPressed() {
accountDialog.center();
}
public void cancelPressed() {
}
});
dialog.center();
}
public void onSuccess(User user) {
AuthenticationHandler.this.user = user;
if (user == null) {
MessageDialogBox dialog = new MessageDialogBox(BaseApplication.getMessages().getString("error", "Error"), BaseApplication.getMessages().getString(
"couldNotCreateAccount", "Could not create new account. Try entering a different username."), true, true, true);
dialog.center();
} else if (user.isValidated()) {
accountDialog.hide();
fireSetAuthenticatedUser(user);
} else if (!user.isValidated()) {
MessageDialogBox