add chat js validate