Added client side validation for submit.php