Every legislative act shall embrace but one subject and matters properly connected therewith, which shall be expressed in the title; but if any subject shall be embraced in an act which shall not be expressed in the title, such an act shall be void only as to so much thereof as shall not be expressed in the title.