make form validation in the register page
make form validation in the register and index