finish register page, but not function