courses validation