Session checking added