public int addUser() {
		String username = textField.getText();
		char[] newpw = PWField.getPassword();
		char[] repeat = PWField2.getPassword();
		String repeatString = new String(repeat);
		String newpwString = new String(newpw);

		if (repeatString.equals(newpwString)) {
			try {
				answer = Switch.switchMethod("addUser", username, newpwString);
			} catch (Exception e1) {
				e1.printStackTrace();
			}

			switch (answer) {
			case "0":
				return 0;
			case "1":
				return 1;
			case "2":
				return 2;
			}
		}
		return 3;
	}