User Role Registration

I am creating a fan and celebrity app with Flutter. Once users click any of the button, it takes them to the registration screen. But I want it to save the button selected(fan or celebrity) and send it to the registration endpoint