added validates() method to owner class and fix the testing condition.