session properly working