Php Loop Over Array Javascript Length Validation Form In React