public boolean errorChecking()
	{
		try
		{
			Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
			String url = "jdbc:odbc:TetrisDataBase";
			Connection con = DriverManager.getConnection(url);
			Statement stmt = con.createStatement();
			userNameList.clear();
			ResultSet rs = stmt.executeQuery("SELECT Username FROM HighScoreTable");

			while(rs.next())
			{
				userNameList.add(rs.getString("Username").toLowerCase());
			}

			if(userNameList.contains(userName.getText().toLowerCase()))
			{
				JOptionPane.showMessageDialog(this, "Somone slready has that username. Please choose another name.", "Choose a new Username", JOptionPane.WARNING_MESSAGE);
				userName.setText("");
				userName.requestFocus();
				return true;
			}

			else if(!passField2.getText().equals(confirmPass.getText()))
			{
				JOptionPane.showMessageDialog(this, "Your password  and confirm password do not match. Please re-type them.", "Re-Type Password", JOptionPane.WARNING_MESSAGE);
				passField2.setText("");
				confirmPass.setText("");
				passField2.requestFocus();
				return true;
			}

			else if(userName.getText().equals("") || passField2.getText().equals("") || confirmPass.getText().equals(""))
			{
				JOptionPane.showMessageDialog(this, "All of the required fields were not completed. Please complete all fields", "Incomplete Information", JOptionPane.WARNING_MESSAGE);
				passField2.setText("");
				confirmPass.setText("");
				passField2.requestFocus();
				return true;
			}
		}

		catch(Exception ex)
		{
			return true;
		}

		return false;
	}