optimisation to password reset process