private void btnLoginMouseClicked(MouseEvent evt) {

		String user = txtUserId.getText().trim();
		String password = jPasswordField1.getText().trim();
		if(user.equals("") || password.equals("")) //in case username or password is blank
		{
			jOptionPane1.showMessageDialog(null, "Please enter User Name and Password");
			txtUserId.requestFocus();
		}
		else
		{
			if (agentDB.verifyLogin(user, password))//call DB to verify login
			{
				JavaWorkshop jw = new JavaWorkshop();
				jw.setVisible(true);	
				dispose();
			}
			else //invalid login
			{
				jOptionPane1.showMessageDialog(null, "Invalid User Name or Password");
				txtUserId.requestFocus();
			}
		}
	}