Update edit.php

Integrity checks