refactored validate methods so it is passed the value it is testing directly