Add exception to handle bad credentials error