Add logic check for user ID in JSON.