Get device ID and save all log in data correctly