Implemented a proper way to require certain config options for pages

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>