complete password reset functions