modified clientside validation in register.jsp v2