Check if the message matches the registration protocol