Exception handling for authentication failure.