Login check added