Removed duplicate function disqus_api(). Injected config services logger.factory and config.factory. Using EntityQuery to check if any drupal user has the same mailid as the author email.