Changed register page to use api router.