public Boolean loginUser(String login, String password){
		
		PreparedStatement pStmt = null;
		ResultSet rs = null;
		Boolean returnLogin = false;
		
		try {
			
			pStmt = conn.prepareStatement("SELECT * FROM USER WHERE login = ? AND password = ?;");
			pStmt.setString(1, login);
			pStmt.setString(2, getMD5Hash(password));
			rs = pStmt.executeQuery();
			
			if(rs.next()) returnLogin = true;

			
		} catch (SQLException e) {

			e.printStackTrace();
			
		} finally {
			
			closeResource(pStmt);
			closeResource(rs);
			
		}
		
		return returnLogin;
		
	}