Validate function changes as per structure returned by nodejs

Jira Issue: WP-123