correcting edit.php