Downloads the credentials