Fixed loginState variable
Merge pull request #190 from topcoderinc/tom-I-112385-login-corner-case

Fixed loginState variable