Hello Deeba,
I guess you're getting this error when you placed button somewhere.
If you want to create a New object of the Registration entity then you should use 'Create Object' option instead of 'Show a Page'.
But if you want to pass an already created object of the Registration entity, you should place your button inside a dataview or a list view.
Kind regards,
Hazal