modified clientside validation in register.jsp