Add register function
update register.html