fixing duplicate entry error in submit.php