Check instance ID before registering apps

Will now drop connections for apps that use a duplicate ID