modify register.html: add more validation.