(3) who was, at the time of his or her election to membership, a resident of the village or of territory outside the village which was afforded fire protection by the fire department of the village, or any fire company thereof, pursuant to a contract for fire protection, or who was a non-resident who was elected to membership or who was continued as a member, pursuant to the provisions of subdivisions five or six of this section, shall for all purposes in law be considered to have been duly elected and approved, or continued, as a member in such fire company as of the date of such approval, if any, and, if none, then as of the date of such election or, in the case of a continuance, as of the date of the approval, if any, by the board of fire commissioners or the board of trustees, and, if none, as of the date of authorization of continuance by the fire company; notwithstanding that there may have been some legal defect in such election, or the proceedings precedent thereto, or a failure of the board of fire commissioners or board of trustees to approve such member, or approve the continuance of membership of such member, as provided by the law in force at the time of such election, or continuance, and the status of such person as a volunteer firefighter as of the date is hereby legalized, validated and confirmed. This subdivision shall not apply to a person, if any, whose volunteer membership in a fire company was disapproved by the board of trustees or board of fire commissioners or declared invalid by a court of competent jurisdiction prior to the first day of January, two thousand eleven.