clean a little bit on LoginWidget.js