Fix bug DNN-5430: log the user id at first.