replace deviceId with username and pass username to activities