Fetch courses based on active state, current code will pull the inactive courses too getCourse, getAllCourses both, add a filter logic in it.
Handle condition when their is no courses available
Validate, when user tries to save new course; do not let users to add the Course with same title again and again. One title must only belong to one course.
Validate when user tries to update course, check if the new course title already exists in the system. One title must only belong to one course.