modified clientside validation in register.jsp v3