add Register.java and Login.java. and the index.jsp and js have little change