In all state projects where federal funds are involved, no bid submitted shall be invalidated by the failure of the bidder to be licensed in accordance with the laws of this state. However, at the time the contract is awarded, the contractor shall be properly licensed in accordance with the laws of this state. The contract shall not be awarded unless the state agency has verified that the contractor has a valid license in the appropriate classification for the work performed. Any bidder or contractor not so licensed shall be subject to all legal penalties imposed
by law, including, but not limited to, any appropriate disciplinary action by the Contractors State License Board. The department shall include a statement to that effect in the standard form of prequalification questionnaire and financial statement. Failure of the bidder to obtain proper and adequate licensing for an award of a contract shall constitute a failure to execute the contract as provided in Section 10181 and shall result in the forfeiture of the security of the bidder.