validator returns object instead of true/false