Fixed error behaviour after auth failure