added repository validation