adds validation to article model