finished password reset functions