Except as otherwise provided by this code a security agreement is effective according to its terms between the parties, against purchasers of the collateral and against creditors. Nothing in this division validates any
COL070307
charge or practice illegal under any statute or regulation thereunder gov- erning usury, small loans, retail installment sales, or the like or extends the application of any such statute or regulation to any transaction not otherwise subject thereto.