Fixed login weirdness