Added sessionCheck