add validation to lesson model