Fix for loginbutton