make sure the script stops processing if a remote account is invalid