1. Redefined API and page routes.
2. Changed register new user to a page.