updated registration flow