Added Session checking