Section 7. No person shall act for more than thirty days as such general agent unless the two proceeding sections have been complied with; and whoever so acts without such compliance shall forfeit not more than five hundred dollars.