Complete implementation of password reset.