validation in repository