Check validity of page title