String lang = ((ChoiceBox<String>) args.get(5)).getValue();
if ((email.compareTo("") == 0) || (pass.compareTo("") == 0)
|| (name.compareTo("") == 0)) {
textArea.appendText("Login, password and name are required to complete registration.");
} else {
SQLQuery nuu = new NewUserUpdate(connect, textArea);
List<Object> args = new LinkedList<Object>();
args.add(login); args.add(email); args.add(pass); args.add(name); args.add(country); args.add(lang);
try {
nuu.prepareQuery(args);
nuu.doQuery();
main.setPanel(PanelType.LoginPanel, null);
} catch (SQLException e) {
e.printStackTrace();
}
}