Added error for bad authentication