added course validation