public boolean login(String name, String password) {
		String select = "SELECT * FROM ADMIN WHERE NAME=?";
		PreparedStatement ps = null;
		boolean correct = false;
		try {
			ps = conn.prepareStatement(select);
			ps.setString(1, name);
			ResultSet rs = ps.executeQuery();

			if (rs.next() && rs.getString("PASSWORD").trim().equals(password))
				correct = true;
			ps.close();
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return correct;
	}