$chk = $this->con->prepare("UPDATE users SET Code=:code WHERE Username=:User");
                    $chk_if = $chk->execute(array(":code" => Null, ":User" => $username));
                    if ($chk_if) {
                        echo "Thanks password has been reset please login now";
                    } else {
                        echo "ERROR! Reload Page!";
                    }
                } else {
                    echo "Password is not match!";
                }
            } else {
                echo "Enter Minimum 6 Characters In Password!";
            }
        } else {
            echo "Invalid Password Recovery link!";
        }
    }
}
$wallet = new Wallet($con);
if (!empty($_POST["Password"]) && !empty($_POST["Cpassword"]) && !empty($_POST["Code"])) {
    $code = $_POST["Code"];
    $password = $_POST["Password"];
    $confirm_password = $_POST["Cpassword"];
    echo $wallet->Reset_password($code, $password, $confirm_password);
} elseif (empty($_POST["Password"])) {
    echo "Please Enter Password";
} elseif (empty($_POST["Cpassword"])) {
    echo "Please Enter Confirm Password";
} elseif (empty($_POST["Code"])) {
    echo "ERROR! Reload Page!";
}