Added saved state for user time to live token and registered devices.c