@Override
	public void actionPerformed(ActionEvent arg0)
	{

		System.out.println("Login button clicked.");

		if (username == null || username.getText().isEmpty() || password == null || password.getPassword().length == 0)
		{
			loginView.printLoginError();
		}

		else if (arg0.getSource() instanceof JButton)
		{
			JButton source = (JButton) arg0.getSource();

			source.setText("Logging in...");
			source.setEnabled(false);

			System.out.println("Username: " + username.getText());
			System.out.println("Password: " + new String(password.getPassword()));

			if (LoginDisplay.usernameAndPasswordLogin(employee,
			                                          username.getText(),
			                                          new String(password.getPassword())))
			{
				loginView.displayError("Successful");
				JFrame frame = loginView.getFrame();
				frame.getContentPane().removeAll();
				frame.add(new SalesOrderPanel(frame));
				frame.repaint();
			}
			else
			{
				loginView.printLoginError();
				source.setText("Log In");
				source.setEnabled(true);
			}
		}
		else
		{
			loginView.displayError("This should not happen... Please contact your system administrator.");
		}

	}