function processResponse(res) {
    if (res.getParameter("error")) {
        alert("Неверное имя пользователя или пароль");
    }
}