Add logging to password reset script