Detect authentication failure