Implement reset-password function.