Error with message when api token is blank
Extract config methods into Config class