Cleanup password toggle code.