added js form validator for page editor