update register
add redirect page
finish register function