Implement device id registration