Refactor the code and fix the bug

There are some of bugs.
    1. edit.php: We have to explode "course_name" with delimeter ",".
    2. input.php: Change the font color if the inputs are invalid.
Del index.html