This handles three different error cases for the config page so that the user gets an error and not just a blank red error box.