Fix bugs in conversion to userID from userName

We’re moving from storing userNames to userIDs throughout. Here we
weren’t updating the timestamp to log a user out correctly. So all
users would be deleted 30 seconds after logging in.