A.
N.J.S.A. 40:48-2 provides in relevant part that a municipality may make, amend, repeal and enforce ordinances not contrary to the laws of this state or of the United States, as it may deem necessary and proper for the good government, order and protection of persons and property, and for the preservation of the public health, safety and welfare of the municipality and its inhabitants.
B.
N.J.S.A. 40:48-2.12a provides in relevant part that the governing body of any municipality may make, amend, repeal and enforce ordinances to regulate buildings and structures and their use and occupation to prevent and abate conditions therein harmful to the health and safety of the occupants of said building and structures and the general public in the municipality.
C.
N.J.S.A. 40:48-2.12c provides in relevant part that any ordinance adopted pursuant to this act may provide for registration of the owners and management of every building and structure in the municipality which is occupied by two or more families as tenants of the owner or lessor.
D.
N.J.S.A. 40:48-2.12f provides in relevant part that any ordinance adopted pursuant to this act may also provide that the municipality may abate a nuisance, correct a defect, or put the premises in proper condition so as to comply with the requirements of any municipal ordinance or state law applicable thereto, at the cost of the owner or lessor, and expend municipal funds for such purpose and charge the same against the premises, and the amount thereof as determined by the governing body of the municipality shall be a lien against the premises.
E.
N.J.S.A. 40:48-2.12m authorizes a municipality to adopt an ordinance requiring a landlord to obtain a certificate of occupancy or inspection before re-renting an apartment to a new occupant. After an apartment is inspected by a municipal inspector, the municipality would issue a certificate of inspection or occupancy if the apartment meets the standards required by law. The municipality may charge a fee to fund the costs of the inspections and the issuance of the certificates.
F.
N.J.S.A. 40:48-2.12n sets forth the findings of the Legislature that municipal residents have experienced disturbances, damage and public expense resulting from carelessly granted and inadequately supervised rentals to irresponsible tenants by inept or indifferent landlords; that to preserve their peace and tranquility it is necessary and desirable that those communities have adequate means to curb and discourage those occasional excesses arising from irresponsible rentals; and that municipal governing bodies may take effective action to assure that excesses, when they occur, shall not be repeated, and that landlords be held to sufficient standards of responsibility.