Right form of the grammar

They are both perfectly appropriate to use, they are simply different forms. It depends on one's personal preference.