new validation method for repositories