refactor checkin.jsp and checkinServlet