Now logs out on authentication failures.