added processing of replacements in JSON response
login dialogs behaving with errors