Updated retrieving logged user.