Added auth key validation - raise exception if not usable

Just added a crude validation of the API key when parsing a response. It will now raise an exception if the key is invalid, instead of throwing a more ambiguous JSON decode error.