expose validator through model prototype