Uses datetimepicker instead of just datepicker. Handles errors for lesson validation