Fix auth bug that errors on first login