edit page validation