adaption of code for STI in password reset feature