No written instrument hereafter made, relating to or affecting real estate, shall contain any provision against conveying, mortgaging, encumbering, or leasing any real estate to any person of a specified religious faith, creed, race or color, nor shall any such written instrument contain any provision of any kind or character discriminating against any class of persons because of their religious faith, creed, race or color. In every such provision any form of expression or description which is commonly understood as designating or describing a religious faith, creed, race or color shall have the same effect as if its ordinary name were used therein.
Every provision referred to in subdivision 1 shall be void, but the instrument shall have full force in all other respects and shall be construed as if no such provision were contained therein.
As used in this section the phrase "written instruments relating to or affecting real estate," embraces every writing relating to or affecting any right, title, or interest in real estate, and includes, among other things, plats and wills; and the word "provision" embraces all clauses, stipulations, restrictions, covenants, and conditions of the kind or character referred to in subdivision 1.
Every person who violates subdivision 1, or aids or incites another to do so, shall be liable in a civil action to the person aggrieved in damages not exceeding $500.