[MRM-1506] api to configure RemoteRepository : extract code from ManagedRepo admin for validation : missed to add a file