added basic form validation to insert.php for save function