add valid column to repositories
refine things related with Repository