refactor auth, terms page.