Personally, I'd move all these validate functions into addNewCourse so they are local variables instead of globally defined functions (they are only used within the scope of addNewCourse).