How to register a contact ID and password