added model validation for links