pebkac: Also fetch the user name if the user is not registered instead of returning null.