Edit pages: validation added