Fix failing test - checking for custom config

The code before this commit was setting config against the
local tiddlywebconfig rather than the global tiddlyweb
config.
Handle invalid credentials and no connection

Return the form with the appropriate error message