shared preffrence and login check are applied with json parsing