diff --git docroot/modules/contrib/otp_verification/otp_verification.module docroot/modules/contrib/otp_verification/otp_verification.module
index 6e5e87dee1..c9c429276f 100644
--- docroot/modules/contrib/otp_verification/otp_verification.module
+++ docroot/modules/contrib/otp_verification/otp_verification.module
@@ -114,9 +114,14 @@ function otp_verification_form_user_form_alter(&$form, FormStateInterface $form_
 function update_profile_entry_in_table(&$form, FormStateInterface $form_state)
 {
     global $base_url;
+    /** fix the field_phone_number field bug */
+    if($form_state->getValues()['field_phone_number'][0]['value']){
     $current_phone_number = $form_state->getValues()['field_phone_number'][0]['value'];
+    }
     $user = \Drupal\user\Entity\User::load(\Drupal::currentUser()->id());
-    $phone = $user->get('field_phone_number')->value;
+    if($user->hasField('field_phone_number')){
+        $phone = $user->get('field_phone_number')->value;
+    }
     $email = $user->get('mail')->value;
     $config = \Drupal::config('otp_verification.settings');
     MiniorangeOtpUtilities::set_otp_cookie('current_phone_number', $current_phone_number);
@@ -465,4 +470,4 @@ function otp_verification_verifyOTP($otp, $tx_id, $Email)
         \Drupal::logger('otp_verification')->error($content);
     }
     return json_decode($content)->status;
-}
+}
\ No newline at end of file
