setting both user id and device id