Added validate(); to code to fix the nondisplay problem