A civil action is commenced by (1) mailing to the clerk of the proper court by certified or registered mail a complaint and an entry fee prescribed by law, (2) filing such complaint and an entry fee with such clerk, or (3) submitting the complaint to the court through the court's electronic filing system accompanied by electronic payment of the entry fee pursuant to the Massachusetts Rules of Electronic Filing. Actions brought pursuant to G.L. c. 185 for registration or confirmation shall be commenced