move everything related to the registration form into its own object