first code lines to register a remote account