Whenever any home rule county issues refunding bonds under the provisions of this part 7, the governing body shall direct that the county clerk and recorder, as a part of said county clerk and recorder's duties, register said bonds in a book to be kept by him for that purpose, and when so registered, the legality thereof shall not be open to contest by the county or by any other person or corporation in behalf of the county for any reason whatever. It is the duty of the county clerk and recorder to register said bonds, noting the principal amount, the date of issuance and maturity, and rate or rates of interest of said bonds.