Handle auth errors properly