updated registration page to use registration api