Fix login bugs

where IP address differed from recorded last-IP, and messages not
displaying up on login