Check membershipID validity