Fixed LoginWindow and added Session variable