added course selection function to course_calendar
pulled from origin
added validation to course selection