More logic for schedule.jsp and register.jsp