validate instructors and subjects