fixed the class scheduled to include classes that end on the current day
and restricted teacher from registoring for his own class.