re-added files for handling failure of third_party authentication