fixing password reset bug