added lesson_type field to lessons
added lesson_type validation

updated json view for lessons