refactored device and save device if any at signup