Validation methodd
Taking away the global lims instance and instead let it be given as argument to the classes.