@Override
	public void registerSuccesfull(String message) {
		JOptionPane.showMessageDialog(mainWindow, new JLabel(message, JLabel.CENTER), "Registration successful",
		        JOptionPane.PLAIN_MESSAGE);
		
		registerPanel.clearTextFields();
		mainWindow.setContentPane(loginPanel);
		mainWindow.revalidate();
		mainWindow.repaint();
		
	}