public void actionPerformed(ActionEvent e){
			if(e.getSource() == btnRegister){
				if (comboBox.getSelectedItem().equals("Patient")) {
					if (textField_1.getText().equals(textField_2.getText()))	{
						NewPatientProfilePanel nup = new NewPatientProfilePanel(parent, textField.getText(), textField_1.getText());
						parent.getContentPane().add(nup);
						CardLayout cl = (CardLayout) parent.getContentPane().getLayout();
						cl.next(parent.getContentPane());
					} else {
						JOptionPane.showMessageDialog(null, "Incorrect value, please try again.");
					}
				}
				else if (comboBox.getSelectedItem().equals("Doctor")) {
					if (textField_1.getText().equals(textField_2.getText()))	{
						NewDoctorProfilePanel ndp = new NewDoctorProfilePanel(parent, textField.getText(), textField_1.getText());
						parent.getContentPane().add(ndp);
						CardLayout cl = (CardLayout) parent.getContentPane().getLayout();
						cl.next(parent.getContentPane());
					} else {
						JOptionPane.showMessageDialog(null, "Incorrect value, please try again.");
					}
				}
				else {
					if (textField_1.getText().equals(textField_2.getText()))	{
						if(parent.getHandler().addNewUser(textField.getText(), textField_1.getText())) {
							AdminHomePanel ahp = new AdminHomePanel(parent, textField.getText());
							parent.getContentPane().add(ahp);
							CardLayout cl = (CardLayout) parent.getContentPane().getLayout();
							cl.next(parent.getContentPane());
						}
					} else {
						JOptionPane.showMessageDialog(null, "Incorrect value, please try again.");
					}					
				}
			} else if (e.getSource() == btnBack) {
				CardLayout cl = (CardLayout) parent.getContentPane().getLayout();
				cl.first(parent.getContentPane());
				parent.getContentPane().remove(parent.getContentPane().getComponents().length-1);
			}
		}