Section 1. Be it enacted, &c., That all boroughs incorporated under the general borough laws, which have not recorded their charter, but have otherwise complied with the law, shall, upon the recording of the same, become a legal borough from the date of its charter, and all elections, proceedings, by-laws, and the corporate acts of its officers are hereby declared as legal and valid, and to have the same force and effect as if said charter had been duly recorded as required by law, upon the decree of its incorporation.