Fixed 3 issues with login widget

Hi guys, we are using your library and found some issues that were giving us trouble. Hope you find these fixes useful. Thanks.