Check if course code exists when creating a new article

Closes #85