changed how validators worked, to allow paramaters