recording user id with messages