if ($userId != null && $username != null) {
            $data['user_id'] = $userId;
            $data['username'] = $username;
        }