Create а valid class Controller

*started block checking the validity of pages