add get template password method