added serverside validation in register.jsp (v1)