better error checking for provider controller
Merge pull request #609 from protherj/authnet

better error checking for provider controller