User session check added