Login turned on, but log off breaks