added additional fields and validation to course schema