Deeds, mortgages, powers of attorney, and other instruments relating to or affecting the title to real estate in this state, shall be recorded in the county in which such real estate is situated; but if such county is not organized, then in the county to which such unorganized county is attached for judicial purposes. No deed, mortgage, assignment of mortgage, or other instrument relating to or affecting the title to real estate in this State may include a provision prohibiting the recording of that instrument, and any such provision in an instrument signed after the effective date of this amendatory Act shall be void and of no force and effect.
765 ILCS 5/28