refactor sign-up page