Fixed bug in submit.php