added validate for the lesson model