updated npmauthenticate example to show how to regsiter a device on failed authentication