Fixing login for the loop ui controller