Check for null values in create a course page