diff --git a/social_auth_amazon.install b/social_auth_amazon.install
index da5b784..144a17a 100644
--- a/social_auth_amazon.install
+++ b/social_auth_amazon.install
@@ -11,13 +11,20 @@ use Drupal\social_auth\Controller\SocialAuthController;
/**
* Implements hook_requirements().
*
- * Checks that a compatible version of OAuth2 Amazon library for the
+ * Checks that a compatible version of oAuth2 Amazon library for the
* league OAuth2 client with Composer. Check installation instructions
* from the README.txt.
*/
function social_auth_amazon_requirements($phase) {
+ $requirements = [];
+
+ // Social API should be installed at this point in order to check library.
+ \Drupal::service('module_installer')->install(['social_api']);
+
+ if ($phase == 'install') {
$requirements = SocialApiImplementerInstaller::checkLibrary('social_auth_amazon', 'Social Auth Amazon', 'luchianenco/oauth2-amazon', 1.1, 1.1);
+ }
return $requirements;
diff --git a/src/Form/AmazonAuthSettingsForm.php b/src/Form/AmazonAuthSettingsForm.php
index 3ca097d..4f7dee5 100644
--- a/src/Form/AmazonAuthSettingsForm.php
+++ b/src/Form/AmazonAuthSettingsForm.php
@@ -137,7 +137,7 @@ class AmazonAuthSettingsForm extends SocialAuthSettingsForm {
'#description' => $this->t('Define the Endpoints to be requested when user authenticates with Amazon for the first time
Enter each endpoint in different lines in the format endpoint|name_of_endpoint.
For instance:
- /user/profile|user_profile'),
+ /user/profile|user_profile');
return parent::buildForm($form, $form_state);
}