save device and user password