Finally have sessions working properly