(a) Except as provided in subsection (b) of this section, only the State may enact a law requiring a notice to be filed with a unit of government to register residential properties that are subject to foreclosure.
(b) This section does not restrict or otherwise affect the ability of a unit of government to require a registration or notice to be filed for a purpose other than one relating to foreclosure, even if a property to be identified in the registration or notice is subject to foreclosure.