added a check to the valiation trait