apply template to register.jsp