public boolean loginMember(String passport, String password) {

        Query q = em.createQuery("SELECT t from SHSMember t");
        for (Object o : q.getResultList()) {
            SHSMemberEntity p = (SHSMemberEntity) o;

            if (p.getPersonId().equals(passport)) {
                if (p.getPassword().equals(password)) {
                    isLogin = true;
                    username = p.getPersonId();
                    userId = p.getId();
                    return true;
                }
            }
        }
        isLogin = false;
        return false;
    }