Effect of interlayer exchange interaction and rare earth dilution on the electrical properties of two-dimensional system