session status check added