Added session attributes check