var loginState = { 'isLoggedIn' : false , 'agreedToTermsAndConditions' : false , 'username' : '' };