use getter instead of initialize assignments
use instance methods instead of class methods in validator