When any deposit is made in the names of two or more persons jointly, or by any person payable on death (P.O.D.) to another, or by any person in trust for another, the rights of the parties and the association are determined by chapter 528.