add $user_identity

$user = wp_get_current_user();
        $user_identity = $user->exists() ? $user->display_name : '';