Added protection from basic authentication failure