Updated Course Creation code and added error array sending.