update RegistrationActivity to use api