Debugging login popup, added some comments to console.