Added validation for Edit page.