added validateEdit to repos