Added check for session wether started or not