index.php merge error in checkFields()