(a) (1) A person who purchases a security from or sells a security to a broker-dealer that is required to be licensed and has not, at the time of the sale or purchase, applied for and secured from the commissioner a certificate under Part 3 (commencing with Section 25200), that is in effect at the time of the sale or purchase authorizing that broker-dealer to act in that capacity, may bring an action for rescission of the sale or purchase or, if the plaintiff or the defendant no longer owns the security