private function verify_and_delete_account()
 {
     include_once SIMPLE_WP_MEMBERSHIP_PATH . 'classes/class.swpm-members.php';
     $delete_account = filter_input(INPUT_GET, 'delete_account');
     if (empty($delete_account)) {
         return;
     }
     $password = filter_input(INPUT_POST, 'account_delete_confirm_pass', FILTER_UNSAFE_RAW);
     $auth = SwpmAuth::get_instance();
     if (!$auth->is_logged_in()) {
         return;
     }
     if (empty($password)) {
         SwpmUtils::account_delete_confirmation_ui();
     }
     $nonce_field = filter_input(INPUT_POST, 'account_delete_confirm_nonce');
     if (empty($nonce_field) || !wp_verify_nonce($nonce_field, 'swpm_account_delete_confirm')) {
         SwpmUtils::account_delete_confirmation_ui(SwpmUtils::_("Sorry, Nonce verification failed."));
     }
     if ($auth->match_password($password)) {
         $auth->delete();
         wp_redirect(home_url());
         exit(0);
     } else {
         SwpmUtils::account_delete_confirmation_ui(SwpmUtils::_("Sorry, Password didn't match."));
     }
 }