Legal education in educational system in conditions of modernization