save user devices on registration and login