Fixed loginState variable

https://appirio.my.salesforce.com/a3v50000000IDJz?fId=0D550000013vobY&OpenCommentForEdit=1&fromEmail=1