corrected issue with reset_password method