Update register_courses.php