Fix bug with register page.