Legal regulation of relations in the field of education