Added validation for headeraddpage and headersearch