public boolean login(String user, String password) {
		this.user = user;
		Map<String, String> logins = new HashMap<String, String>();
		try {
			openConnection();
			ResultSet res = st.executeQuery("SELECT Name,Password FROM Player");

			while (res.next()) {
				logins.put(res.getString("Name"), res.getString("Password"));
			}

			MessageDigest m = MessageDigest.getInstance("MD5");
			m.reset();
			m.update(password.getBytes());
			byte[] digest = m.digest();
			BigInteger bigInt = new BigInteger(1, digest);
			String hashtext = bigInt.toString(16);
			while (hashtext.length() < 32) {
				hashtext = "0" + hashtext;
			}

			if (!hashtext.equals(logins.get(user))) {
				return false;
			}

			res = st.executeQuery("SELECT * FROM Player WHERE name='" + user + "'");
			res.first();
			coins = res.getInt("Coins");
			unlocked = res.getString("Unlocked");
			playtime = res.getInt("Playtime");

			closeConnection();
		} catch (Exception ex) {
			ex.printStackTrace();
			return false;
		}
		succLogin = true;
		return true;
	}