add validation to project model