implement mojito validator