Fix Form Validation issue with text inputs which have array as name

Signed-off-by: Hashem Qolami <hashem@qolami.com>
change empty function to Identical comparison operator

Signed-off-by: Hashem Qolami <hashem@qolami.com>
Merge pull request #2547 from HashemQolami/patch-1

Fix Form Validation issue with text inputs which have array as name