Fix login() to return true instead of null when already logged in.