add validation for link model