public Member exist(String email, String password) throws Exception
    {
        Connection connection = null;
        PreparedStatement stmt = null;
        ResultSet rs = null;

        try
        {
            connection = ds.getConnection();
            stmt = connection.prepareStatement("SELECT MNAME, EMAIL FROM MEMBERS WHERE EMAIL = ? AND PWD = ?");
            stmt.setString(1, email);
            stmt.setString(2, password);
            rs = stmt.executeQuery();

            Member member = null;

            if(rs.next())
            {
                member = new Member();
                member.setEmail(rs.getString("EMAIL"));
                member.setName(rs.getString("MNAME"));
            }

            return member;
        }
        catch(Exception e)
        {
            throw e;
        }
        finally
        {
            try { if(rs != null) rs.close(); } catch(Exception e) {}
            try { if(stmt != null) stmt.close(); } catch(Exception e) {}
            try { if(connection != null) connection.close(); } catch(Exception e) {}
        }
    }