added session validation before performing operations to get rid of errors SS-258