private void systemLogin()
	{
		try
        {
			if(txtUserName.getText().trim().length() != 0)
			{
				if(pfdUserPassword.getPassword().length != 0)
				{
					String userName = txtUserName.getText();
                    String userPassword = "";
                    for(char c : pfdUserPassword.getPassword())
                        userPassword += c;

					boolean success = _userCtrl.validateUserLogin(userName, userPassword);
					if(success)
					{
                        UserSession.setLoggedInUser(_userCtrl.getUserByName(userName));
                        new views.SystemUI().setVisible(true);
                        _frame.dispose();
					}
					else
					{
                        //wrong password, unknown user name (case 8)
                        JOptionPane.showMessageDialog(null, Logging.messages(8), "Information", JOptionPane.INFORMATION_MESSAGE);
					}
				}
				else
				{
					//no entry in password field (case 7)
                    JOptionPane.showMessageDialog(null, Logging.messages(7), "Information", JOptionPane.INFORMATION_MESSAGE);
				}
			}
			else
			{
				//no entry in user name field (case 06)
                JOptionPane.showMessageDialog(null, Logging.messages(6), "Information", JOptionPane.INFORMATION_MESSAGE);
			}
		}
		catch(Exception ex)
		{
			JOptionPane.showMessageDialog(null, Logging.handleException(ex,5), "Fejl", JOptionPane.ERROR_MESSAGE);
			System.exit(0);
		}
	}