Magnetic Study of Pr and Nd nickelates