diff --git a/config/install/first_time_login.settings.yml b/config/install/first_time_login.settings.yml
new file mode 100644
index 0000000..4f7fe31
--- /dev/null
+++ b/config/install/first_time_login.settings.yml
@@ -0,0 +1,4 @@
+first_time_login_config_days: 120
+first_time_login_new_user_message: Welcome @user to @site_name your account was created on '@created_date'. Please update your account's details.
+first_time_login_update_user_message: Welcome @user to @site_name your account was updated on '@updated_date'. Please update your account's details.
+langcode: en
\ No newline at end of file
diff --git a/config/schema/first_time_login.schema.yml b/config/schema/first_time_login.schema.yml
new file mode 100644
index 0000000..adf6d83
--- /dev/null
+++ b/config/schema/first_time_login.schema.yml
@@ -0,0 +1,13 @@
+first_time_login.settings:
+  type: config_object
+  label: 'FirstTimeLogin Settings'
+  mapping:
+    first_time_login_config_days:
+      type: text
+      label: 'Enter the number of days.'
+    first_time_login_new_user_message:
+      type: text
+      label: 'First Time Login New User Message'
+    first_time_login_update_user_message:
+      type: text
+      label: 'First Time Login Update User Message'
diff --git a/first_time_login.links.menu.yml b/first_time_login.links.menu.yml
new file mode 100644
index 0000000..16f7de6
--- /dev/null
+++ b/first_time_login.links.menu.yml
@@ -0,0 +1,6 @@
+first_time_login.list:
+  title: 'First Time Login'
+  description: 'Configure First Time Login Form.'
+  route_name: first_time_login.settings
+  weight: 10
+  parent: user.admin_index
diff --git a/first_time_login.module b/first_time_login.module
new file mode 100644
index 0000000..5f36075
--- /dev/null
+++ b/first_time_login.module
@@ -0,0 +1,139 @@
+<?php
+
+/**
+ * @file
+ * Defines necessary menu's, Permissions, age-calculator form & ajax callbacks.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\Database\Database;
+use Symfony\Component\HttpFoundation\RedirectResponse;
+
+/**
+ * Implements hook_help().
+ */
+function first_time_login_help($route_name, RouteMatchInterface $route_match) {
+  switch ($route_name) {
+    case 'help.page.first_time_login':
+      $output = '';
+      $output .= '<h3>' . t('About') . '</h3>';
+      $output .= '<p><strong>' . t('Super user (user with UID = 1), will not be
+                  prompted for profile update.') . '</strong></p>';
+      $output .= '<p><strong>* </strong>' . t('The First time login module prompts user to reset their profile, when they login to their account for the first time (once profile is updated it will not prompt form next login onwards). After creating a user account with basic details, user can be intimated to log on to their profile and ask them to update it.') . '</p>';
+      $output .= '<p><strong>* </strong>' . t('You can configure the threshold number of days after which user will be again prompted to update their profile.') . '</p>';
+      $output .= '<p><strong>* </strong>' . t('Timestamp for the existing users will be updated to their last profile access time.') . '</p>';
+      return $output;
+  }
+}
+
+/**
+ * Implements hook_user_insert().
+ */
+function first_time_login_user_insert($account) {
+
+  $uid = $account->id();
+  $access = $account->getLastAccessedTime();
+  $conn = Database::getConnection();
+  $conn->insert('user_first_login')
+      ->fields(array(
+        'uid' => $uid,
+        'first_time_login' => 1,
+        'updated_date' => $access,
+      ))
+      ->execute();
+}
+
+/**
+ * Implements hook_user_update().
+ *
+ * Force user to resset account and turn the flag off and updated the timestamp.
+ */
+function first_time_login_user_update($account) {
+  $current_user = \Drupal::currentUser();
+  if ($account->isNew() != TRUE && ($account->id() == $current_user->id())) {
+    $conn = Database::getConnection();
+    $conn->update('user_first_login')
+        ->fields(array(
+          'first_time_login' => 0,
+          'updated_date' => REQUEST_TIME,
+        ))
+        ->condition('uid', $account->id(), '=')
+        ->execute();
+  }
+}
+
+/**
+ * Implements hook_user_login().
+ *
+ * When user logins check the flag and last updated profile and act accordingly.
+ */
+function first_time_login_user_login($account) {
+  $conn = Database::getConnection();
+  $site_name = \Drupal::config('system.site')->get('name');
+  if ($account->id() == 1) {
+    return;
+  }
+  $details = $conn->select('user_first_login', 'n')
+      ->fields('n', array('first_time_login', 'updated_date'))
+      ->condition('uid', $account->id(), '=')
+      ->condition('uid', 1, '!=')
+      ->execute()
+      ->fetchObject();
+
+  $updated_date = $details->updated_date;
+
+  $current_time = REQUEST_TIME;
+  if ($updated_date == 0) {
+    $days_diff = 0;
+  }
+  else {
+    $days_diff = ($current_time - $updated_date) / (60 * 60 * 24);
+  }
+  $config = \Drupal::configFactory()->getEditable('first_time_login.settings');
+  $needsupdate = ($days_diff > $config->get('first_time_login_config_days'));
+
+  if (is_object($details)) {
+    if ($details->first_time_login == 1 || $needsupdate) {
+      // Default login destination to the dashboard.
+      $destination = 'user/' . $account->id() . '/edit';
+      $url_object = \Drupal::service('path.validator')->getUrlIfValid($destination);
+      $url_object->setAbsolute();
+      $url = $url_object->toString();
+      $response = new RedirectResponse($url, 302);
+      $account_created = format_date($account->getCreatedTime(), 'custom', 'd-M-Y');
+      $last_updated_date = format_date($updated_date, 'custom', 'd-M-Y');
+      if ($needsupdate == FALSE) {
+        $new_user_message = $config->get('first_time_login_new_user_message');
+        drupal_set_message((t($new_user_message, array(
+              '@user' => $account->getAccountName(),
+              '@site_name' => $site_name,
+              '@created_date' => $account_created,
+            )))
+        );
+      }
+      elseif ($details->first_time_login == 0) {
+        $update_user_message = $config->get('first_time_login_update_user_message');
+        drupal_set_message((t($update_user_message, array(
+              '@user' => $account->getAccountName(),
+              '@site_name' => $site_name,
+              '@updated_date' => $last_updated_date,
+            )))
+        );
+      }
+      $response->send();
+    }
+  }
+}
+
+/**
+ * Implements hook_user_delete().
+ *
+ * When user account is deleted delete its corresponding flag.
+ */
+function first_time_login_user_delete($account) {
+  $conn = Database::getConnection();
+  $uid = $account->id();
+  $conn->delete('user_first_login')
+      ->condition('uid', $uid)
+      ->execute();
+}
diff --git a/first_time_login.routing.yml b/first_time_login.routing.yml
new file mode 100644
index 0000000..8e4e848
--- /dev/null
+++ b/first_time_login.routing.yml
@@ -0,0 +1,7 @@
+first_time_login.settings:
+  path: 'admin/config/people/first-time-login/settings'
+  defaults:
+    _form: '\Drupal\first_time_login\Form\FirstTimeLoginSettings'
+    _title: 'First Time Login'
+  requirements:
+    _permission: 'administer users'
\ No newline at end of file
diff --git a/src/Form/FirstTimeLoginSettings.php b/src/Form/FirstTimeLoginSettings.php
new file mode 100644
index 0000000..d5fdf53
--- /dev/null
+++ b/src/Form/FirstTimeLoginSettings.php
@@ -0,0 +1,97 @@
+<?php
+
+namespace Drupal\first_time_login\Form;
+
+use Drupal\Core\Form\ConfigFormBase;
+use Drupal\Core\Form\FormStateInterface;
+use Drupal\Core\Link;
+use Drupal\Core\Url;
+
+/**
+ * Class FirstTimeLoginSettings.
+ *
+ * @package Drupal\first_time_login\Form\FirstTimeLoginSettings
+ */
+class FirstTimeLoginSettings extends ConfigFormBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getEditableConfigNames() {
+    return [
+      'first_time_login.settings'
+    ];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getFormID() {
+    return 'first_time_login.settings';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function buildForm(array $form, FormStateInterface $form_state) {
+    // Form constructor.
+    $form = parent::buildForm($form, $form_state);
+    $config = \Drupal::configFactory()->getEditable('first_time_login.settings');
+    $form = array();
+
+    $form['first_time_login_config_days'] = [
+      '#type' => 'textfield',
+      '#element_validate' => array('element_validate_integer_positive'),
+      '#title' => $this->t('Enter the number of days.'),
+      '#required' => TRUE,
+      '#default_value' => $config->get('first_time_login_config_days'),
+      '#description' => $this->t('Numeric field - enter number of days.
+                        For example: Enter 60 for 60 days / 2 Months. </br>
+                        User who has not updated their account since the above mentioned days,
+                        will be prompted to updated their account after login.'),
+    ];
+    $form['first_time_login_new_user_message'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Enter the welcome message for the newly registered users.'),
+      '#required' => TRUE,
+      '#default_value' => $config->get('first_time_login_new_user_message'),
+      '#description' => $this->t('Text field - enter message.
+                        For example: Welcome to the @site_name. </br>
+                        Allowed tokens: @user, @site_name and @created_date'),
+    ];
+    $form['first_time_login_update_user_message'] = [
+      '#type' => 'textfield',
+      '#title' => $this->t('Enter the reminder message for the users </br>who have not
+      updated their profile since the above configured number of days.'),
+      '#required' => TRUE,
+      '#default_value' => $config->get('first_time_login_update_user_message'),
+      '#description' => $this->t('Text field - enter message.
+                        For example: @user, please update your account. </br>
+                        Allowed tokens: @user, @site_name and @updated_date'),
+    ];
+    return parent::buildForm($form, $form_state);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function validateForm(array &$form, FormStateInterface $form_state) {
+    if (!is_numeric($form_state->getValue('first_time_login_config_days'))) {
+      $form_state->setErrorByName('first_time_login_config_days', t('Enter the number of days should be number.'));
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submitForm(array &$form, FormStateInterface $form_state) {
+    \Drupal::configFactory()->getEditable('first_time_login.settings')
+        ->set('first_time_login_config_days', $form_state->getValue('first_time_login_config_days'))
+        ->set('first_time_login_new_user_message', $form_state->getValue('first_time_login_new_user_message'))
+        ->set('first_time_login_update_user_message', $form_state->getValue('first_time_login_update_user_message'))
+        ->save();
+    return parent::submitForm($form, $form_state);
+  }
+
+}
+
