updated session and check logic