integrated gd validate with frontend js