Fixed an issue with invalid authentication not being handled properly