fix pagekey validation for edit page