Improved authentication failure errors

[finishes #47141137]