No treasurer or ex officio treasurer shall be liable on his or her bond for money on deposit in a bank, capital stock financial institution, or qualifying mutual financial institution and by direction of the proper legal authority, if the bank, capital stock financial institution, or qualifying mutual financial institution has given bond or gives security in accordance with section 77-2352. Section 77-2366 shall apply to deposits in capital stock financial institutions. Section 77-2365.01 shall apply to deposits in qualifying mutual financial institutions.