tion (data) {
        console.log(data);
        if (data.error_code >= 400){
          alert(data.error);
        }
        else {
          //Send toast notification
          createToast('User account has been updated', 'user account')
        }

        //Sync type
        setTimeout(() => { reloadPageContent(); }, 1000);
      });
    }

    // Update user account
    function updateAccountPassword(){
      console.log("Info: updating user password");
      id = "{{ page_user_id }}"
      password = $(