No person engaged in the business or acting in the capacity of a contractor may bring or maintain any action in any court of this state for the collection of compensation for the performance of any work or for breach of any contract for which registration is required under this chapter without alleging and proving that he or she was a duly registered contractor and held a current and valid certificate of registration at the time he or she contracted for the performance of such work or entered into such contract. For the purposes of this section, the court shall not find a contractor in substantial compliance with the registration requirements of this chapter unless:
RCW 18.27.080