login check added