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