added clientside validation in register.jsp