Device registration and a metadata working correctly