That error message means that authorize.net is not excepting the transaction key or the login. From the code you sent, i cannot see an problem with those values, they appear to be correct. you should double check them, if you dont see a problem, contact authorize.net to see why they are not being excepted.