Changed Session to singleton design pattern and made changes necessary