No action or counterclaim shall be maintained by any person in any court in this state with respect to any agreement or service for which a license is required by this chapter or to recover such services for which a license is required by this chapter without alleging and proving that such person had a valid license at the time of making such agreement or performing such services.