Implement password reset function.