additional debugging to password reset function