Add the pwd verification function.