Handle authentication errors better.