fixing pword reset bug