Section 50. The secretary of state shall examine and endorse his approval on the application for registration if the business of the foreign limited partnership is not prohibited by law to a limited partnership formed under this chapter and if the secretary of state determines that the application complies with this section. Upon such approval and payment of the required fee, the application shall be deemed to be filed with the secretary of state and the foreign limited partnership shall be deemed to be registered to do business in the commonwealth. The secretary of state shall keep the records and have the duties with respect to foreign limited partnerships as are provided in subsection 6 of section 15.03 of subdivision A of Part 15 of chapter 156D relative to foreign corporations.