block validator method