Added a better error catch when html is returned from an auth call