Edit page and validation