Fixed bug in add_course.php now it warns the user if the code course is duplicated.