add register page and register form validation