additional debugging to password_reset function