isMemberIdValid should be sufficient check, there should be no problem with a user whose id matches portal root id