public void Login() {
		setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
		String username = userTextField.getText();
		char[] password = passwordField.getPassword();
		String passwordString = new String(password);

		try {
			answer = Switch.switchMethod("logIn", username, passwordString);
		} catch (Exception e1) {
			e1.printStackTrace();
		}

		switch (answer) {
		case "0":

			currentUser = new User();
			currentUser.setUsername(username);
			calPal = new CalendarPanel();
			reset();
			MyFrame.card.add("calPal", calPal);
			MyFrame.GUI.show(MyFrame.card, "calPal");
		case "1":
			reset();
			lblLogStatus.setText("Email not found!");
			break;
		case "2":
			reset();
			lblLogStatus.setText("User is inactive");
			break;
		case "3":
			reset();
			lblLogStatus.setText("Wrong password");
			break;
		}
		setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
	}