still not down with validator function