Maybe there is a space in the credentials at the beginning or end. Maybe the credentials aren't live on the authorize.net account. The error seems clear, so something is wrong. I'd probably need a url to reproduce and even access to your authorize.net account to fully debug something like this.