Fixed more login bugs.