added assign_validator method