Be it further enacted by the authority aforesaid, That no license or permits to do business required by the charter and ordinances of said city shall be valid unless the secretary of the commission has endorsed the same, that said person, firm or corporation taking out the same has registered in his office, in compliance with the terms provided by ordinance and any person who does or attempts to do business of any character, for which a license or permit is required, without complying with this section, may be arrested for a violation of the same and punished in such manner as may be provided by the ordinances of said city.