added authentication error, rescue json parse error if api sends invalid
json